package com.hwl.demo13;

import com.hwl.demo13.service.Player;
import com.hwl.demo13.service.impl.Forwards;
import com.hwl.demo13.service.impl.Translator;

/**
 * 适配器模式
 *
 * @author sentry
 * @since 2023-03-20
 */
public class Main {

    public static void main(String[] args) {
        Player forwards = new Forwards("巴蒂尔");
        forwards.attack();

        Player guards = new Forwards("麦克格雷迪");
        guards.attack();

        Player center = new Translator("姚明");
        center.attack();
        center.defense();
    }
}
